package com.huilian.iotbox.admin.wap.service.impl;

import com.huilian.iotbox.admin.wap.dao.UserStoreDao;
import com.huilian.iotbox.admin.wap.service.UserStoreService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.po.UserStore;
import com.huilian.iotbox.data.vo.UserStoreVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author LinYinDong
 * @date 2024/11/7 上午10:26
 */
@Service
public class UserStoreServiceImpl implements UserStoreService {
    @Resource
    private UserStoreDao userStoreDao;
    @Override
    public ServerResponse findAllocationStore(UserStore userStore) {
        // 查询全部场地
        List<UserStoreVo> userStoreVoList = userStoreDao.findAllocationStore(userStore);

        return ServerResponse.createBySuccess(userStoreVoList);
    }
}
